export default {
    methods: {
        gotoPage(name, params) {
            //保存每次跳转前路由名			
    		// let randomNum = Math.random();
            // this.$router.replace({ name: name,query:{random:randomNum}, params: { direction: 'forward', ...params } });
            this.$router.replace({ name: name ,params: { direction: 'forward', ...params } });
        },
        backPage(name, params) {
            this.$router.replace({ name: name ,params: { direction: 'reverse', ...params } });
        },
    }
}